<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Video Test</title>
  <link href="https://cdn.staticfile.org/dplayer/1.25.0/DPlayer.min.css" rel="stylesheet">
  <script type="text/javascript" src="https://cdn.staticfile.org/dplayer/1.25.0/DPlayer.min.js"></script>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
  </style>
</head>
<body>
  <div id="dplayer"></div>
<script>
  var container = document.getElementById('dplayer');
  var dp = new DPlayer({
    container: container,
    video: {
      pic: 'http://img.zcool.cn/community/01f09e577b85450000012e7e182cf0.jpg',
      type: 'auto',
      quality: [{
        name: '流畅',
        url: '${root}/video/f'
      }],
      defaultQuality: 0
    },
    autoplay: true
  });
  dp.fullScreen.request('web'); // 网页全屏
</script>
</body>
</html>
